package com.hn.sanya.zzht.dao;

import com.hn.sanya.zzht.entity.User;
import com.hn.sanya.zzht.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
* @Description: 用户表
* @author syiti
* @Method
* @params
* @return
* @date 2018/3/16 14:51
*/
@Repository("userDao")
public class UserDao {

@Autowired
private UserMapper userMapper;

    //根据账户查询
    public User findUserInfo(String username){
        return userMapper.findUserInfo(username);
    }

    //修改密码
    public boolean modifyPassword(User user){
        return userMapper.modifyPassword(user);
    }
}
